package com.aaa.utils;

import java.util.Random;

/**
 * @author ：XiaoxXuan
 * @date ：Created in 2022.08.30 17:52
 * @description：随机生成六位数字符串
 * @modified By：
 */
public class RandomSixNumber {

    /** * @create by: XiaoXuan
     * @description:  调用之后生成六位数随机数
     * @create time: 2022.08.30 17:55
     * @return java.lang.String 
     */
    public static Integer generateSix () {
        Random random = new Random();
        String sixNumber="";
        Integer six = null;
        for (int i = 0; i < 6; i++) {
            int par1 = random.nextInt(5);
            int par2 = random.nextInt(5);
            String par = (par1+par2)+"";
            sixNumber+=par;
            six = Integer.valueOf(sixNumber);
        }
        return six;
    }


}